import { httpTokenRequest } from '../utils/http.js';
//个人中心模块

//获取配置信息
export function getConfig(params) {
	return httpTokenRequest({
		url: '/api/index/getConfig',
		method: 'POST',
		params: params
	});
}
//修改密码
export function changepwd(params) {
	return httpTokenRequest({
		url: '/api/user/changepwdV1',
		method: 'POST',
		params: params
	});
}
//获取个人信息
export function getUserInfo(params) {
	return httpTokenRequest({
		url: '/api/user/getUserInfo',
		method: 'POST',
		params: params
	});
}
//修改个人信息
export function editUserInfo(params) {
	return httpTokenRequest({
		url: '/api/user/profile',
		method: 'POST',
		params: params
	});
}
//获取我的关注和粉丝
export function getMyFollowFans(params) {
	return httpTokenRequest({
		url: '/api/user/getMyFollowFans',
		method: 'POST',
		params: params
	});
}
//获取取消我的关注和粉丝
export function cancelFollow(params) {
	return httpTokenRequest({
		url: '/api/user/cancelFollow',
		method: 'POST',
		params: params
	});
}
export function getOtherFansFocus(params) {
	return httpTokenRequest({
		url: '/api/user/getotherfansfocus',
		method: 'POST',
		params: params
	});
}
// 获取邀请记录
export function getMyAllTeam(params) {
	return httpTokenRequest({
		url: '/api/user/getMyAllTeam',
		method: 'POST',
		params: params
	});
}
// 获取我的收藏记录
export function getMyCollect(params) {
	return httpTokenRequest({
		url: '/api/user/getMyCollect',
		method: 'POST',
		params: params
	});
}
// 小竹叶明细记录
export function getMoneyLog(params) {
	return httpTokenRequest({
		url: '/api/user/getMoneyLog',
		method: 'POST',
		params: params
	});
}
// 充值小竹叶下单
export function rechargeGoPay(params) {
	return httpTokenRequest({
		url: '/api/Recharge/goPay',
		method: 'POST',
		params: params
	});
}
// 提交意见反馈
export function submintFeedback(params) {
	return httpTokenRequest({
		url: '/api/user/submitFeedback',
		method: 'POST',
		params: params
	});
}
// 获取用户消息
export function getMessage(params) {
	return httpTokenRequest({
		url: '/api/user/getMessage',
		method: 'POST',
		params: params
	});
}

// 专业人士列表
export function getMajorType(params) {
	return httpTokenRequest({
		url: '/api/index/major_type',
		method: 'POST',
		params: params
	});
}
// 申请成为专业人士
export function majorApplyV1(params) {
	return httpTokenRequest({
		url: '/api/user/new_majorApplyV1',
		method: 'POST',
		params: params
	});
}

// 获取专业人士证书状态
export function getMajorStatus(params) {
	return httpTokenRequest({
		url: '/api/user/professional',
		method: 'POST',
		params: params
	});
}

//实名认证
export function checkIdCard(params) {
	return httpTokenRequest({
		url: '/api/user/checkIdCard',
		method: 'POST',
		params: params
	});
}

export function commonUpload(params) {
	return httpTokenRequest({
		url: '/api/common/upload',
		method: 'POST',
		params: params
	});
}

// 取消收藏
export function cancelCollect(params) {
	return httpTokenRequest({
		url: '/api/user/cancelCollect',
		method: 'POST',
		params: params
	});
}

// 获取小竹会员套餐
export function getCombo(params) {
	return httpTokenRequest({
		url: '/api/Iospay/getVipcomboList_new',
		method: 'POST',
		params: params
	});
}

// 获取开通会员-确认订单页数据
export function getPayVip(params) {
	return httpTokenRequest({
		url: '/api/Vipuser/getPayVip',
		method: 'POST',
		params: params
	});
}

// 会员套餐下单
export function payVip(params) {
	return httpTokenRequest({
		url: '/api/Vipuser/payVip',
		method: 'POST',
		params: params
	});
}

//获取支付套餐小竹叶数量
export function getComboList(params) {
	return httpTokenRequest({
		url: '/api/Recharge/getComboList',
		method: 'POST',
		params: params
	});
}


//获取ta的主页
export function getOtherUserHomeInfo(params) {
	return httpTokenRequest({
		url: '/api/user/getOtherUserHomeInfo',
		method: 'POST',
		params: params
	});
}

//获取我的主页
export function getMyUserHomeInfo(params) {
	return httpTokenRequest({
		url: '/api/user/getMyUserHomeInfo',
		method: 'POST',
		params: params
	});
}

/**
* 获取我的草稿
* @param {Object} type 类型 0:回答草稿   1:提问草稿
*/
export function getMydraft(type) {
	return httpTokenRequest({
		url: '/api/user/mydraft',
		method: 'POST',
		params: {
			type: type
		}
	});
}

/**
* 获取邀请
*/
export function newGetMyAllTeam(params) {
	return httpTokenRequest({
		url: '/api/User/new_getMyAllTeam',
		method: 'POST',
		params: params
	});
}

//获取邀请图片
export function getShareImg(params) {
	return httpTokenRequest({
		url: '/api/index/getinvitationposter',
		method: 'POST',
		params: params
	});
}

//退出
export function logout(params) {
	return httpTokenRequest({
		url: '/api/user/logout',
		method: 'POST',
		params: params
	});
}

export function getdelusertext(params) {
	return httpTokenRequest({
		url: '/api/index/getdelusertext',
		method: 'POST',
		params: params
	});
}

export function deluser(params) {
	return httpTokenRequest({
		url: '/api/user/deluser',
		method: 'POST',
		params: params
	});
}

export function getSend(params) {
	return httpTokenRequest({
		url: '/api/sms/send',
		method: 'POST',
		params: params
	});
}

//获取学习记录
export function getLearnRecord(params) {
	return httpTokenRequest({
		url: '/api/user/getVideorecord',
		method: 'POST',
		params: params
	});
}

//获取学习记录
export function addVedioRecord(params) {
	return httpTokenRequest({
		url: '/api/College/addstudyrecord',
		method: 'POST',
		params: params
	});
}

//兑换码
export function checkCode(params) {
	return httpTokenRequest({
		url: '/api/exchangecode/checkcode',
		method: 'POST',
		params: params
	});
}

//获取购买记录
export function getMyBuyrecord(params) {
	return httpTokenRequest({
		url: '/api/user/mybuyrecord',
		method: 'POST',
		params: params
	});
}

//获取优惠券列表
export function getCouponList(params) {
	return httpTokenRequest({
		url: '/api/Jianghunew/couponlist',
		method: 'POST',
		params: params
	});
}

//是否提交注销
export function isDelUser(params) {
	return httpTokenRequest({
		url: '/api/user/is_deluser',
		method: 'POST',
		params: params
	});
}


//修改邮箱
export function setEmail(params) {
	return httpTokenRequest({
		url: '/api/user/setemail',
		method: 'POST',
		params: params
	});
}


//编辑在线状态
export function setIsOnline(params) {
	return httpTokenRequest({
		url: '/api/Jianghunew/set_isonline',
		method: 'POST',
		params: params
	});
}

//获取专家评价
export function getExpertEvaluate(params) {
	return httpTokenRequest({
		url: '/api/user/get_jianghu_evaluate',
		method: 'POST',
		params: params
	});
}


//获取老师的主页回答列表
export function getTaAnswerList(params) {
	return httpTokenRequest({
		url: '/api/user/get_jianghu_answer',
		method: 'POST',
		params: params
	});
}
